package Animal_And_Interface;

public class Fish extends Animal implements ISwimming{
    public Fish(String name){
        super(name);
    }

    @Override
    public void eatFood() {
        System.out.println(this.name + "正在吃鱼食！");
    }

    @Override
    public void swim() {
        System.out.println(this.name + "正在游！");
    }
}
